package com.hzw.saas.web.admin.sys.param;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 忘记密码参数
 *
 * @author zzl
 * @since 01/03/2021
 */
@Data
@ApiModel(value = "修改密码")
public class PwdResetParam {

    /**
     * 验证方式，1-手机，2-邮箱
     */
    @NotNull(message = "验证方式不可为空")
    @ApiModelProperty(value = "验证方式，1-手机，2-邮箱", position = 1, required = true)
    private Integer verifyMode;

    @NotBlank(message = "新密码不能为空")
    @ApiModelProperty(value = "新密码", position = 2, required = true)
    private String password;

    @NotBlank(message = "验证码不嫩为空")
    @ApiModelProperty(value = "验证码", position = 3, required = true)
    private String verifyCode;

}
